package com.zlfund.cat.zjgsmk.util.filepick;

import android.os.Parcel;
import android.os.Parcelable;

import com.zlfund.cat.zjgsmk.adapter.BaseBean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by chenj on 2017/9/27 0027.
 */

public class LocalImageDirectory extends BaseBean implements Parcelable {
    private String mFileName;
    private String mFilePath;
    private List<String> mImagePaths;

    public LocalImageDirectory(String fileName, String filePath) {
        mFileName = fileName;
        mFilePath = filePath;
        mImagePaths = new ArrayList<>();
    }

    protected LocalImageDirectory(Parcel in) {
        mFileName = in.readString();
        mFilePath = in.readString();
        mImagePaths = in.createStringArrayList();
    }

    public static final Creator<LocalImageDirectory> CREATOR = new Creator<LocalImageDirectory>() {
        @Override
        public LocalImageDirectory createFromParcel(Parcel in) {
            return new LocalImageDirectory(in);
        }

        @Override
        public LocalImageDirectory[] newArray(int size) {
            return new LocalImageDirectory[size];
        }
    };

    public String getFileName() {
        return mFileName;
    }

    public void setFileName(String fileName) {
        mFileName = fileName;
    }

    public String getFilePath() {
        return mFilePath;
    }

    public void setFilePath(String filePath) {
        mFilePath = filePath;
    }

    public List<String> getImageNum() {
        return mImagePaths;
    }

    public void setImageNum(List<String> imagePaths) {
        mImagePaths = imagePaths;
    }

    public void addImagePath(String path){
        mImagePaths.add(path);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(mFileName);
        dest.writeString(mFilePath);
        dest.writeStringList(mImagePaths);
    }


}
